home *** CD-ROM | disk | FTP | other *** search
/ Atari Forever 4 / Atari Forever 4.zip / Atari Forever 4.iso / SERIE_S / S_913 / STIKCOVL / HTTP.H < prev    next >
C/C++ Source or Header  |  1998-03-14  |  1KB  |  29 lines

  1. #include <time.h>
  2.  
  3. typedef struct
  4. {
  5.     char content_encoding[256];  /* x-gzip or x-compress */
  6.     long content_length;         /* length of the object */
  7.     char content_type[256];      /* MIME type of the object */
  8.     time_t date;                 /* creation date of the object */
  9.     time_t expires;              /* expiration date of the object */
  10.     time_t last_modified;        /* date the object was last modified */
  11.     char location[256];          /* real location of the document; go here */
  12.     double mime_version;         /* MIME version used for this document;
  13.                                     indicates a MIME compliant message */
  14.     char pragma[256];            /* message for every gateway etc */
  15.     char server[256];            /* server used by the host */
  16.     char www_authenticate[256];  /* authentication challenge */
  17. } URL_info;
  18.  
  19. typedef struct
  20. {
  21.     char protocol[10];                /* ftp, http, gopher, news, mailto */
  22.     char server[256];
  23.     int port;
  24.     char URI[512];
  25. } URL_components;
  26.  
  27. #define      GET_METHOD     1
  28. #define      POST_METHOD    2
  29.